找传奇、传世资源到传世资源站!

eclipse版本android指南针demo

8.5玩家评分(1人评分)
下载后可评
介绍 评论 失效链接反馈

from clipboardpackage com.pgap.compass;import com.phonegap.*;//import android.app.Activity;import android.os.Bundle;import android.view.Window;import android.view.WindowManager;public class Compass_activity extends DroidGap { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //setContentView(R.layout.main); //this.setFullscreen(); super.loadUrl("file:///android_asset/ww" "w/index.html"); } //全屏(无标题栏和状态栏) public void setFullscreen() { getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);//清除FLAG requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); } }

评论

发表评论必须先登陆, 您可以 登陆 或者 注册新账号 !


在线咨询: 问题反馈
客服QQ:174666394

有问题请留言,看到后及时答复